package com.itheima.area.service;

import com.github.pagehelper.Page;
import com.itheima.area.pojo.CustFarmland;
import com.itheima.area.pojo.CustFarmlandCrop;
import com.itheima.area.pojo.CustFarmlandDevice;

import java.util.List;
import java.util.Map;

/**
 * @PackageName com.itheima.area.service
 * @ProjectName Ceres-Work
 * @Created by Chanly on 2020/10/14 9:20
 **/
public interface FieldService {

    List<CustFarmland> findAll(Long id);

    void deleteById(Long id);

    void add(CustFarmland custFarmland,CustFarmlandCrop custFarmlandCrop, CustFarmlandDevice custFarmlandDevice);

    void update(CustFarmland custFarmland, CustFarmlandDevice custFarmlandDevice,CustFarmlandCrop custFarmlandCrop,Long id) ;

    Page<CustFarmland> findPage(Map searchMap, int page, int size);
}
